import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { setupStore } from '@/store'
import { setupI18n } from '@/plugins/vueI18n'
import ElementPlus from 'element-plus'
import zhLocale from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import Pagination from '@/components/Pagination/index.vue'
import BaseLayout from '@/layout/baseLayout/index.vue'
import './style/mixins.scss'
import './style.css'
import './permission'

const app = createApp(App)

await setupI18n(app)
setupStore(app)

app.component('Pagination', Pagination)
app.component('BaseLayout', BaseLayout)
app.use(router)
app.use(ElementPlus, {
  locale: zhLocale
})

app.mount('#app')
